package com.eastfair.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Size;
import lombok.Data;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author clm
 * @since 2022-12-29
 */
@Data
@ApiModel(value = "CommonInterfaceCallRecordUpdateDTO", description = "")
public class CommonInterfaceCallRecordDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 团队id
     */
    @ApiModelProperty(value = "团队id")
    private Long teamId;
    /**
     * http请求地址
     */
    @ApiModelProperty(value = "http请求地址")
    @Size(max = 255, message = "http请求地址长度不能超过255")
    private String httpUrl;
    /**
     * 最后错误信息
     */
    @ApiModelProperty(value = "最后错误信息")
    @Size(max = 255, message = "最后错误信息长度不能超过255")
    private String errorMsg;
    /**
     * 最后错误code
     */
    @ApiModelProperty(value = "最后错误code")
    private Integer errorBusinessCode;
    /**
     * 重试次数
     */
    @ApiModelProperty(value = "重试次数")
    private Integer retryCount;
    /**
     * 状态-1 失败   1成功  0重试中
     */
    @ApiModelProperty(value = "状态-1 失败   1成功  0重试中")
    private Integer status;
    /**
     * 最后httpcode
     */
    @ApiModelProperty(value = "最后httpcode")
    private Integer httpCode;
    /**
     * 接口参数
     */
    @ApiModelProperty(value = "接口参数")
    @Size(max = 255, message = "接口参数长度不能超过255")
    private String httpAttr;
    /**
     * 请求方式
     */
    @ApiModelProperty(value = "请求方式")
    @Size(max = 255, message = "请求方式长度不能超过255")
    private String httpType;
    /**
     * 最大重试次数（超过不再重试）
     */
    @ApiModelProperty(value = "最大重试次数（超过不再重试）")
    private Integer maxRetryCount;
    /**
     * 回调地址
     */
    @ApiModelProperty(value = "回调地址")
    @Size(max = 255, message = "回调地址长度不能超过255")
    private String callbackUrl;
    /**
     * 业务code
     */
    @ApiModelProperty(value = "业务code")
    @Size(max = 255, message = "业务code长度不能超过255")
    private String businessCode;
    /**
     * 业务线唯一id
     */
    @ApiModelProperty(value = "业务线唯一id")
    @Size(max = 255, message = "业务线唯一id长度不能超过255")
    private String traceId;
}
